diff options
author | unknown <sanja@sun.com> | 2009-01-08 10:20:04 +0200 |
---|---|---|
committer | unknown <sanja@sun.com> | 2009-01-08 10:20:04 +0200 |
commit | dd8e57af7b48445fefc5b591d65419c0df3f3046 (patch) | |
tree | 4a7ec93e7de8bd88e871e6b1da4d14239cfb352f /storage/maria/ma_locking.c | |
parent | 6aa97fb6648e08745533eacdf5e77afd882c3246 (diff) | |
download | mariadb-git-dd8e57af7b48445fefc5b591d65419c0df3f3046.tar.gz |
_ma_state_info_write numeric flags changed with constants.
storage/maria/maria_def.h:
Constants for _ma_state_info_write added.
Diffstat (limited to 'storage/maria/ma_locking.c')
-rw-r--r-- | storage/maria/ma_locking.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/storage/maria/ma_locking.c b/storage/maria/ma_locking.c index 1ad41e5b213..2a34d1fe9f3 100644 --- a/storage/maria/ma_locking.c +++ b/storage/maria/ma_locking.c @@ -112,7 +112,8 @@ int maria_lock_database(MARIA_HA *info, int lock_type) /* transactional tables rather flush their state at Checkpoint */ if (!share->base.born_transactional) { - if (_ma_state_info_write_sub(share->kfile.file, &share->state, 1)) + if (_ma_state_info_write_sub(share->kfile.file, &share->state, + MA_STATE_INFO_WRITE_DONT_MOVE_OFFSET)) error= my_errno; else { @@ -316,8 +317,10 @@ int _ma_writeinfo(register MARIA_HA *info, uint operation) share->state.update_count= info->last_loop= ++info->this_loop; #endif - if ((error= _ma_state_info_write_sub(share->kfile.file, - &share->state, 1))) + if ((error= + _ma_state_info_write_sub(share->kfile.file, + &share->state, + MA_STATE_INFO_WRITE_DONT_MOVE_OFFSET))) olderror=my_errno; #ifdef __WIN__ if (maria_flush) |