diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-15 20:55:15 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-15 20:55:15 +0200 |
commit | fa0c1689471a5f8cd9e03791f25eec70034c3b8b (patch) | |
tree | fbd5cc4e4c013dc14875282619d71de259c48921 /external/db_drivers/liblmdb/mdb_stat.c | |
parent | Merge pull request #2283 (diff) | |
parent | ITS#8704 add MDB_PREVSNAPSHOT flag to mdb_env_open (diff) | |
download | monero-fa0c1689471a5f8cd9e03791f25eec70034c3b8b.tar.xz |
Merge pull request #2285
9c6eb75c ITS#8704 add MDB_PREVSNAPSHOT flag to mdb_env_open (Howard Chu)
Diffstat (limited to 'external/db_drivers/liblmdb/mdb_stat.c')
-rw-r--r-- | external/db_drivers/liblmdb/mdb_stat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/external/db_drivers/liblmdb/mdb_stat.c b/external/db_drivers/liblmdb/mdb_stat.c index b785e7acf..30ec81fea 100644 --- a/external/db_drivers/liblmdb/mdb_stat.c +++ b/external/db_drivers/liblmdb/mdb_stat.c @@ -46,7 +46,7 @@ static void prstat(MDB_stat *ms) static void usage(char *prog) { - fprintf(stderr, "usage: %s [-V] [-n] [-e] [-r[r]] [-f[f[f]]] [-a|-s subdb] dbpath\n", prog); + fprintf(stderr, "usage: %s [-V] [-n] [-e] [-r[r]] [-f[f[f]]] [-v] [-a|-s subdb] dbpath\n", prog); exit(EXIT_FAILURE); } @@ -73,6 +73,7 @@ int main(int argc, char *argv[]) * -f: print freelist info * -r: print reader info * -n: use NOSUBDIR flag on env_open + * -v: use previous snapshot * -V: print version and exit * (default) print stat of only the main DB */ @@ -96,6 +97,9 @@ int main(int argc, char *argv[]) case 'n': envflags |= MDB_NOSUBDIR; break; + case 'v': + envflags |= MDB_PREVSNAPSHOT; + break; case 'r': rdrinfo++; break; |