add assert to sequential-optimized write path

This commit is contained in:
Sears Russell 2010-09-24 17:51:09 +00:00
parent a3e7fc0fe2
commit 7815d2f792

View file

@ -214,6 +214,7 @@ static inline stasis_buffer_concurrent_hash_tls_t * populateTLS(stasis_buffer_ma
break;
} else {
if(succ) {
assert(tmp == tls->p);
// can only reach this if writes are sequential, and the page is dirty.
unlock(tls->p->loadlatch);
}