Skip to content

Commit 2e00c06

Browse files
committed
constexpr in Config
1 parent fd1c4b7 commit 2e00c06

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/jrd/replication/Config.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ using namespace Replication;
5151

5252
namespace
5353
{
54-
const char* REPLICATION_CFGFILE = "replication.conf";
54+
constexpr const char* REPLICATION_CFGFILE = "replication.conf";
5555
constexpr const char* KEY_SUFFIX_ENV = "env";
5656
constexpr const char* KEY_SUFFIX_FILE = "file";
5757

58-
const ULONG DEFAULT_BUFFER_SIZE = 1024 * 1024; // 1 MB
59-
const ULONG DEFAULT_SEGMENT_SIZE = 16 * 1024 * 1024; // 16 MB
60-
const ULONG DEFAULT_SEGMENT_COUNT = 8;
61-
const ULONG DEFAULT_ARCHIVE_TIMEOUT = 60; // seconds
62-
const ULONG DEFAULT_GROUP_FLUSH_DELAY = 0;
63-
const ULONG DEFAULT_APPLY_IDLE_TIMEOUT = 10; // seconds
64-
const ULONG DEFAULT_APPLY_ERROR_TIMEOUT = 60; // seconds
58+
constexpr ULONG DEFAULT_BUFFER_SIZE = 1024 * 1024; // 1 MB
59+
constexpr ULONG DEFAULT_SEGMENT_SIZE = 16 * 1024 * 1024; // 16 MB
60+
constexpr ULONG DEFAULT_SEGMENT_COUNT = 8;
61+
constexpr ULONG DEFAULT_ARCHIVE_TIMEOUT = 60; // seconds
62+
constexpr ULONG DEFAULT_GROUP_FLUSH_DELAY = 0;
63+
constexpr ULONG DEFAULT_APPLY_IDLE_TIMEOUT = 10; // seconds
64+
constexpr ULONG DEFAULT_APPLY_ERROR_TIMEOUT = 60; // seconds
6565

6666
void parseLong(const string& input, ULONG& output)
6767
{

0 commit comments

Comments
 (0)