diff options
author | Ziv Scully <ziv@mit.edu> | 2015-10-07 08:58:08 -0400 |
---|---|---|
committer | Ziv Scully <ziv@mit.edu> | 2015-10-07 08:58:08 -0400 |
commit | 013ea39e9f187efbb0e3a613264a1c7adfebe692 (patch) | |
tree | 601babdc734209052526b2710bfdf628119b5e59 /src/lru_cache.sml | |
parent | 36cb6a55281f753774e491cce3178eb8c927983e (diff) |
Fix recording bugs to do with nesting and buffer reallocation. Stop MonoFooify printing spurious errors.
Diffstat (limited to 'src/lru_cache.sml')
-rw-r--r-- | src/lru_cache.sml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lru_cache.sml b/src/lru_cache.sml index b8dfde5e..275c3061 100644 --- a/src/lru_cache.sml +++ b/src/lru_cache.sml @@ -91,7 +91,8 @@ fun setupQuery {index, params} = newline, string (" uw_Sqlcache_CacheValue *v = uw_Sqlcache_check(cache" ^ i ^ ", ks);"), newline, - string " if (v) {", + (* If the output is null, it means we had too much recursion, so it's a miss. *) + string " if (v && v->output != NULL) {", newline, string (" puts(\"SQLCACHE: hit " ^ i ^ ".\");"), newline, |