diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-06-18 14:52:05 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-06-20 15:32:47 +1000 |
commit | ea63867d6974c9ddbcee87371bc067009da50fa6 (patch) | |
tree | 0fae6d12d2e1dc4e9872bf4a3928ff4a5b0e145b | |
parent | f3ab36014fe49487fdb791d468811e33ec8b354b (diff) | |
download | mongo-ea63867d6974c9ddbcee87371bc067009da50fa6.tar.gz |
src/txn/txn.c:243:29: error: 'txn_global' may be used uninitialized in this function
-rw-r--r-- | src/txn/txn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txn/txn.c b/src/txn/txn.c index 8244a093cf0..6b4759ad5c9 100644 --- a/src/txn/txn.c +++ b/src/txn/txn.c @@ -198,6 +198,8 @@ __wt_txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[]) const char *snapshot; const char *txn_cfg[] = { "isolation=snapshot", NULL }; + txn_global = &S2C(session)->txn_global; + if ((ret = __wt_config_gets( session, cfg, "snapshot", &cval)) != 0 && ret != WT_NOTFOUND) WT_RET(ret); @@ -211,7 +213,6 @@ __wt_txn_checkpoint(WT_SESSION_IMPL *session, const char *cfg[]) WT_ERR(__wt_txn_begin(session, txn_cfg)); /* Prevent eviction from evicting anything newer than this. */ - txn_global = &S2C(session)->txn_global; txn_global->ckpt_txnid = session->txn.snap_min; WT_ERR(__wt_meta_track_on(session)); |