Skip to content

Commit

Permalink
Rename k_JOURNALOP_TYPE constant
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Ivanov <[email protected]>
  • Loading branch information
alexander-e1off committed Dec 3, 2024
1 parent 70ffcb2 commit 8e63247
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/applications/bmqstoragetool/m_bmqstoragetool_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ bool isValidQueueKeyHexRepresentation(const char* queueKeyBuf)
// class CommandLineArguments
// ==========================

const char* CommandLineArguments::k_MESSAGE_TYPE = "message";
const char* CommandLineArguments::k_QUEUEOP_TYPE = "queue-op";
const char* CommandLineArguments::k_JOURNAL_TYPE = "journal-op";
const char* CommandLineArguments::k_MESSAGE_TYPE = "message";
const char* CommandLineArguments::k_QUEUEOP_TYPE = "queue-op";
const char* CommandLineArguments::k_JOURNALOP_TYPE = "journal-op";

CommandLineArguments::CommandLineArguments(bslma::Allocator* allocator)
: d_recordType(allocator)
Expand Down Expand Up @@ -390,9 +390,12 @@ Parameters::Parameters(const CommandLineArguments& arguments,
else if (*cit == CommandLineArguments::k_QUEUEOP_TYPE) {
d_processRecordTypes.d_queueOp = true;
}
else {
else if (*cit == CommandLineArguments::k_JOURNALOP_TYPE) {
d_processRecordTypes.d_journalOp = true;
}
else {
BSLS_ASSERT(false && "Unknown journal record type");
}
}

// Set search range type and values if present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct CommandLineArguments {
// PUBLIC DATA
static const char* k_MESSAGE_TYPE;
static const char* k_QUEUEOP_TYPE;
static const char* k_JOURNAL_TYPE;
static const char* k_JOURNALOP_TYPE;
// Record types constants
bsl::vector<bsl::string> d_recordType;
// List of record types to process (message, journalOp, queueOp)
Expand Down

0 comments on commit 8e63247

Please sign in to comment.