Skip to content

Commit f1253ff

Browse files
committed
constexpr in Manager
1 parent 5ecb3cf commit f1253ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/jrd/replication/Manager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using namespace Replication;
3636

3737
namespace Replication
3838
{
39-
const size_t MAX_BG_WRITER_LAG = 10 * 1024 * 1024; // 10 MB
39+
constexpr size_t MAX_BG_WRITER_LAG = 10 * 1024 * 1024; // 10 MB
4040
}
4141

4242

@@ -132,7 +132,7 @@ Manager::Manager(const string& dbId,
132132
// Startup the journalling
133133

134134
const auto tdbb = JRD_get_thread_data();
135-
const auto dbb = tdbb->getDatabase();
135+
const auto* dbb = tdbb->getDatabase();
136136

137137
const auto& guid = dbb->dbb_guid;
138138
m_sequence = dbb->dbb_repl_sequence;
@@ -258,7 +258,7 @@ void Manager::flush(UCharBuffer* buffer, bool sync, bool prepare)
258258
fb_assert(!m_shutdown);
259259
fb_assert(buffer && buffer->hasData());
260260

261-
const auto prepareBuffer = prepare ? buffer : nullptr;
261+
const auto* prepareBuffer = prepare ? buffer : nullptr;
262262

263263
MutexLockGuard guard(m_queueMutex, FB_FUNCTION);
264264

src/jrd/replication/Manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace Replication
9494
m_changeLog->cleanup();
9595
}
9696

97-
const Replication::Config* getConfig() const
97+
const Replication::Config* getConfig() const noexcept
9898
{
9999
return m_config;
100100
}

0 commit comments

Comments
 (0)