Skip to content

Commit

Permalink
WT-2471: review WiredTiger "int" printf formats
Browse files Browse the repository at this point in the history
Sue notes WT_LSM_TREE.modified should be a boolean, not an "int".
  • Loading branch information
keithbostic committed Mar 11, 2016
1 parent b56ef15 commit 6bc0330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/lsm.h
Expand Up @@ -215,7 +215,7 @@ struct __wt_lsm_tree {
size_t chunk_alloc; /* Space allocated for chunks */
uint32_t nchunks; /* Number of active chunks */
uint32_t last; /* Last allocated ID */
int modified; /* Have there been updates? */
bool modified; /* Have there been updates? */

WT_LSM_CHUNK **old_chunks; /* Array of old LSM chunks */
size_t old_alloc; /* Space allocated for old chunks */
Expand Down
2 changes: 1 addition & 1 deletion src/lsm/lsm_tree.c
Expand Up @@ -874,7 +874,7 @@ __wt_lsm_tree_switch(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree)
F_CLR(lsm_tree, WT_LSM_TREE_NEED_SWITCH);
++lsm_tree->dsk_gen;

lsm_tree->modified = 1;
lsm_tree->modified = true;

/*
* Set the switch transaction in the previous chunk unless this is
Expand Down

0 comments on commit 6bc0330

Please sign in to comment.