File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,17 @@ using namespace Replication;
5151
5252namespace
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 {
You can’t perform that action at this time.
0 commit comments