diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-08-26 16:33:29 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-08-26 16:33:29 +1000 |
commit | 4835fc22c8ef18a6eb454ef336b0fb4b7d40f0d3 (patch) | |
tree | 998b509f27c2832d05572bc4f7e4e267102f1120 /src/meta | |
parent | b6e2a6c4499ed4be2082cf8ba7804ef94d71e952 (diff) | |
download | mongo-4835fc22c8ef18a6eb454ef336b0fb4b7d40f0d3.tar.gz |
Save LSNs in files during checkpoint.
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/meta_ckpt.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/meta/meta_ckpt.c b/src/meta/meta_ckpt.c index 344275876d6..9a109e2d1a9 100644 --- a/src/meta/meta_ckpt.c +++ b/src/meta/meta_ckpt.c @@ -365,8 +365,8 @@ format: * Set a file's checkpoint value from the WT_CKPT list. */ int -__wt_meta_ckptlist_set( - WT_SESSION_IMPL *session, const char *fname, WT_CKPT *ckptbase) +__wt_meta_ckptlist_set(WT_SESSION_IMPL *session, + const char *fname, WT_CKPT *ckptbase, WT_LSN *ckptlsn) { struct timespec ts; WT_CKPT *ckpt; @@ -443,6 +443,10 @@ __wt_meta_ckptlist_set( sep = ","; } WT_ERR(__wt_buf_catfmt(session, buf, ")")); + if (ckptlsn != NULL) + WT_ERR(__wt_buf_catfmt(session, buf, + ",checkpoint_lsn=(%" PRIu32 ", %" PRIuMAX ")", + ckptlsn->file, (uintmax_t)ckptlsn->offset)); WT_ERR(__ckpt_set(session, fname, buf->mem)); err: __wt_scr_free(&buf); |