From 8286469b9a72cd19d13eb52ed80af71c9e0235b0 Mon Sep 17 00:00:00 2001 From: sdong Date: Wed, 16 Feb 2022 17:06:33 -0800 Subject: [PATCH] LDB to add --secondary_path to help (#9582) Summary: Opening DB as seconeary instance has been supported in ldb but it is not mentioned in --help. Mention it there. The part of the help message after the modification: ``` commands MUST specify --db= when necessary commands can optionally specify --env_uri= or --fs_uri= if necessary --secondary_path= to open DB as secondary instance. Operations not supported in secondary instance will fail. ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/9582 Test Plan: Build and run ldb --help Reviewed By: riversand963 Differential Revision: D34286427 fbshipit-source-id: e56c5290d0548098ab6acc6dde2167f5a64f34f3 --- tools/ldb_tool.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/ldb_tool.cc b/tools/ldb_tool.cc index 08a22c0ad..169fad666 100644 --- a/tools/ldb_tool.cc +++ b/tools/ldb_tool.cc @@ -21,9 +21,13 @@ void LDBCommandRunner::PrintHelp(const LDBOptions& ldb_options, ret.append("commands MUST specify --" + LDBCommand::ARG_DB + "= when necessary\n"); ret.append("\n"); - ret.append("commands can optionally specify --" + LDBCommand::ARG_ENV_URI + - "= or --" + LDBCommand::ARG_FS_URI + - "= if necessary\n\n"); + ret.append("commands can optionally specify\n"); + ret.append(" --" + LDBCommand::ARG_ENV_URI + "= or --" + + LDBCommand::ARG_FS_URI + "= if necessary"); + ret.append("\n"); + ret.append(" --" + LDBCommand::ARG_SECONDARY_PATH + + "= to open DB as secondary instance. Operations " + "not supported in secondary instance will fail.\n\n"); ret.append( "The following optional parameters control if keys/values are " "input/output as hex or as plain strings:\n");