Changeset: 3cab0e521438 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3cab0e521438
Modified Files:
sql/storage/sql_storage.h
sql/storage/store.c
Branch: efficient-pending-changes
Log Message:
sql_change_block is an internal type.
diffs (32 lines):
diff --git a/sql/storage/sql_storage.h b/sql/storage/sql_storage.h
--- a/sql/storage/sql_storage.h
+++ b/sql/storage/sql_storage.h
@@ -535,12 +535,6 @@ typedef struct sql_change {
tc_cleanup_fptr cleanup;/* callback to cleanup changes */
} sql_change;
-typedef struct sql_change_block {
- node *start; /* pointer to the start of the block */
- node *end; /* pointer to the end of the block */
- ulng ts; /* for block building purposes it could have been the
timestamp of any sql_change in block, however we store the oldest one to help
compute the store->oldest_pending */
-} sql_change_block;
-
extern void trans_add(sql_trans *tr, sql_base *b, void *data, tc_cleanup_fptr
cleanup, tc_commit_fptr commit, tc_log_fptr log);
extern int tr_version_of_parent(sql_trans *tr, ulng ts);
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2273,6 +2273,12 @@ id_hash_clear_older(sql_hash *h, ulng ol
}
}
+typedef struct sql_change_block {
+ node *start; /* pointer to the start of the block */
+ node *end; /* pointer to the end of the block */
+ ulng ts; /* for block building purposes it could have been the
timestamp of any sql_change in block, however we store the oldest one to help
compute the store->oldest_pending */
+} sql_change_block;
+
/*
* Add the newly added changes into the store->changesBlocks structure,
* either by merging with existing blocks or by creating new blocks.
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]