forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: surface OPTIONS filename in pebble.Peek
The pebble.Peek function allows external users to retrieve metadata about an Engine without opening it. This commit adds the filename of the latest OPTIONS file to the output, so the caller may parse the options used by the most recent process. Additionally, this commit adds new methods for locating atomicfs.Marker that use an existing directory listing to avoid repeated listing of the data directory during Open and Peek.
- Loading branch information
Showing
7 changed files
with
123 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
peek testdata/db-stage-1 | ||
---- | ||
initialized at format major version 013 | ||
manifest: testdata/db-stage-1/MANIFEST-000001 | ||
options: testdata/db-stage-1/OPTIONS-000003 | ||
|
||
peek testdata/db-stage-2 | ||
---- | ||
initialized at format major version 013 | ||
manifest: testdata/db-stage-2/MANIFEST-000001 | ||
options: testdata/db-stage-2/OPTIONS-000003 | ||
|
||
peek testdata/db-stage-3 | ||
---- | ||
initialized at format major version 013 | ||
manifest: testdata/db-stage-3/MANIFEST-000006 | ||
options: testdata/db-stage-3/OPTIONS-000007 | ||
|
||
peek testdata/db-stage-4 | ||
---- | ||
initialized at format major version 013 | ||
manifest: testdata/db-stage-4/MANIFEST-000006 | ||
options: testdata/db-stage-4/OPTIONS-000007 | ||
|
||
peek testdata/db-stage-5 | ||
---- | ||
err=open testdata/db-stage-5: no such file or directory | ||
|
||
peek testdata | ||
---- | ||
uninitialized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters