# HG changeset patch # User Ziv Scully # Date 1447340767 18000 # Node ID 4afaab5232131378e9be505c28dd620d75067adc # Parent 19b233bb3176d927a00d9be6e8cc1722be63ab23 Initialize invalidation to NULL! diff -r 19b233bb3176 -r 4afaab523213 src/c/urweb.c --- a/src/c/urweb.c Thu Nov 12 09:47:20 2015 -0500 +++ b/src/c/urweb.c Thu Nov 12 10:06:07 2015 -0500 @@ -585,6 +585,7 @@ ctx->numRecording = 0; ctx->recordingOffset = 0; + ctx->inval = NULL; ctx->remoteSock = -1; @@ -4732,9 +4733,11 @@ inval->keys = keys; inval->next = NULL; if (ctx->inval) { + // An invalidation is already registered, so just extend it. ctx->inval->next = inval; } else { uw_register_transactional(ctx, inval, uw_Sqlcache_flushCommit, NULL, uw_Sqlcache_flushFree); } + // [ctx->inval] should always point to the last invalidation. ctx->inval = inval; }