diff options
author | Michael Widenius <monty@mysql.com> | 2008-11-01 01:14:58 +0200 |
---|---|---|
committer | Michael Widenius <monty@mysql.com> | 2008-11-01 01:14:58 +0200 |
commit | 2b521320fb66c6f0635103b3fa3ee1b86f6b7a2c (patch) | |
tree | 42aff63b09c43037fe04f96ec85031748054115f /storage/maria/ma_update.c | |
parent | ca4d512aa46df2f231940d20f1b94b8409a7c691 (diff) | |
download | mariadb-git-2b521320fb66c6f0635103b3fa3ee1b86f6b7a2c.tar.gz |
Added ha_maria::is_changed() (needed for Query cache)
storage/maria/ha_maria.cc:
Added ha_maria::is_changed()
storage/maria/ha_maria.h:
Added ha_maria::is_changed()
storage/maria/ma_delete.c:
Mark that table changed
storage/maria/ma_open.c:
Ensure that info->state->changed is always reset from thr_lock()
storage/maria/ma_state.c:
Reset handler->state->changed at first usage of transactional table
Reset handler->state->changed when taking lock for not transactional table
storage/maria/ma_state.h:
Added variable and function to track changes of table
storage/maria/ma_update.c:
Mark that table changed
storage/maria/ma_write.c:
Mark that table changed
Diffstat (limited to 'storage/maria/ma_update.c')
-rw-r--r-- | storage/maria/ma_update.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/maria/ma_update.c b/storage/maria/ma_update.c index a178f5d47a7..7b9e006ec43 100644 --- a/storage/maria/ma_update.c +++ b/storage/maria/ma_update.c @@ -173,6 +173,7 @@ int maria_update(register MARIA_HA *info, const uchar *oldrec, uchar *newrec) */ info->update= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED | key_changed); share->state.changed|= STATE_NOT_MOVABLE | STATE_NOT_ZEROFILLED; + info->state->changed= 1; /* Every Maria function that updates Maria table must end with |