diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2016-01-22 09:44:54 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2016-01-22 09:44:54 +1100 |
commit | 103f1c294876e267a6e80ac2ae5db23fbc4ec616 (patch) | |
tree | 182cafa5df561e88d8176cd880f95b5f8964e4cc | |
parent | 8e56f349e1f9b0c7cc10a6ecaec9c844babf4815 (diff) | |
download | mongo-103f1c294876e267a6e80ac2ae5db23fbc4ec616.tar.gz |
WT-2338 Add a comment in log pre-allocation
Explaining why we can't pre-allocate while a hot backup cursor is open.
-rw-r--r-- | src/conn/conn_log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conn/conn_log.c b/src/conn/conn_log.c index 5e44436d0eb..0100fdd5b52 100644 --- a/src/conn/conn_log.c +++ b/src/conn/conn_log.c @@ -741,6 +741,12 @@ __log_server(void *arg) * Perform log pre-allocation. */ if (conn->log_prealloc > 0) { + /* + * Log file pre-allocation is disabled when a + * hot backup cursor is open because we have + * agreed not to rename or remove any files in + * the database directory. + */ WT_ERR(__wt_readlock( session, conn->hot_backup_lock)); locked = true; |