Lines Matching refs:shared
198 void StressTest::InitReadonlyDb(SharedState* shared) { in InitReadonlyDb() argument
202 PreloadDbAndReopenAsReadOnly(FLAGS_max_key, shared); in InitReadonlyDb()
312 void StressTest::VerificationAbort(SharedState* shared, std::string msg, in VerificationAbort() argument
316 shared->SetVerificationFailure(); in VerificationAbort()
319 void StressTest::VerificationAbort(SharedState* shared, std::string msg, int cf, in VerificationAbort() argument
324 shared->SetVerificationFailure(); in VerificationAbort()
339 SharedState* shared) { in PreloadDbAndReopenAsReadOnly() argument
354 shared->Put(cf_idx, k, 0, true /* pending */); in PreloadDbAndReopenAsReadOnly()
388 shared->Put(cf_idx, k, 0, false /* pending */); in PreloadDbAndReopenAsReadOnly()
491 auto shared = thread->shared; in OperateDb() local
507 if (thread->shared->HasVerificationFailedYet() || in OperateDb()
508 thread->shared->ShouldStopTest()) { in OperateDb()
513 MutexLock l(thread->shared->GetMutex()); in OperateDb()
519 thread->shared->IncVotedReopen(); in OperateDb()
520 if (thread->shared->AllVotedReopen()) { in OperateDb()
521 thread->shared->GetStressTest()->Reopen(thread); in OperateDb()
522 thread->shared->GetCondVar()->SignalAll(); in OperateDb()
524 thread->shared->GetCondVar()->Wait(); in OperateDb()
531 if (thread->shared->HasVerificationFailedYet()) { in OperateDb()
547 if (thread->shared->ShouldStopTest()) { in OperateDb()
574 shared->GetMutexForKey(rand_column_family, rand_key))); in OperateDb()
579 if (thread->shared->HasVerificationFailedYet()) { in OperateDb()
600 VerificationAbort(shared, "VerifyGetLiveFiles status not OK", status); in OperateDb()
608 VerificationAbort(shared, "VerifyGetSortedWalFiles status not OK", in OperateDb()
617 VerificationAbort(shared, "VerifyGetCurrentWalFile status not OK", in OperateDb()
627 shared, "Pause/ContinueBackgroundWork status not OK", status); in OperateDb()
635 VerificationAbort(shared, "VerifyChecksum status not OK", status); in OperateDb()
649 VerificationAbort(shared, "Backup/restore gave inconsistent state", in OperateDb()
657 VerificationAbort(shared, "Checkpoint gave inconsistent state", s); in OperateDb()
666 VerificationAbort(shared, "ApproximateSize Failed", s); in OperateDb()
677 VerificationAbort(shared, "Snapshot gave inconsistent state", s); in OperateDb()
743 VerificationAbort(shared, "Secondary instance failed to catch up", s); in OperateDb()
1145 thread->shared->SetVerificationFailure(); in VerifyIterator()
1234 bool exists = thread->shared->Exists(rand_column_families[i], rand_keys[i]); in TestBackupRestore()
1357 thread->shared->Exists(rand_column_families[i], rand_keys[i]); in TestCheckpoint()
1591 thread->shared->SetVerificationFailure(); in TestCompactRange()
1620 thread->shared->SetVerificationFailure(); in GetRangeHash()