From 1985ec6424f8430ced5abebebebac74b556cc9bf Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Wed, 26 Nov 2008 07:12:51 +0000 Subject: [PATCH] defensively check that caller locked pages as appropriate --- stasis/page/compression/staticMulticolumn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stasis/page/compression/staticMulticolumn.h b/stasis/page/compression/staticMulticolumn.h index fd0439b..8f3e811 100644 --- a/stasis/page/compression/staticMulticolumn.h +++ b/stasis/page/compression/staticMulticolumn.h @@ -365,6 +365,7 @@ class StaticMulticolumn { abort(); } */ inline TUPLE * recordFind(int xid, TUPLE& val, TUPLE& scratch) { + assertlocked(p_->rwlatch); std::pair pair_scratch; std::pair * ret; // printf("static multiclumn record find\n"); fflush(stdout); @@ -439,6 +440,7 @@ class StaticMulticolumn { } inline void pack() { + assertlocked(p_->rwlatch); #ifdef PACK_STATS if(pack_first) { pack_exceptionBytes = 0;