-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix RpcDB connection so one can attach local Instance to remote DB for debugging purpose #8049
base: master
Are you sure you want to change the base?
Changes from all commits
1cf11ae
abd8d39
21e6ce6
0808264
3ba5d5d
33fef6d
99249fb
8d71479
c9d2e92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ private DbSettings GetRocksDbSettings(DbSettings originalSetting) | |
bool firstDb = _index == -1; | ||
|
||
// if first DB, then we will put it into main directory and not use indexed subdirectory | ||
string dbName = firstDb ? originalSetting.DbName : originalSetting.DbName + _index; | ||
string dbName = originalSetting.DbName; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmmm, my intuition is telling me that it could cause issues with full-pruning There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah wrote to Ashraf already as was not confident about this one There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But path still point to proper location - just DbName is different - without this change RPC was looking for a DB called "State0" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be fine 'Path' is more important and 'Name' is mostly for our convenience. You might want to change |
||
string dbPath = firstDb ? originalSetting.DbPath : _fileSystem.Path.Combine(originalSetting.DbPath, _index.ToString()); | ||
DbSettings dbSettings = originalSetting.Clone(dbName, dbPath); | ||
dbSettings.CanDeleteFolder = !firstDb; // we cannot delete main db folder, only indexed subfolders | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic I prefer $"{response.Result}" for strings