MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setError

Method setError

src/jrd/idx.cpp:417–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415
416private:
417 void setError(IStatus* status, bool stopTask)
418 {
419 const bool copyStatus = (m_status.isSuccess() && status && status->getState() == IStatus::STATE_ERRORS);
420 if (!copyStatus && (!stopTask || m_stop))
421 return;
422
423 MutexLockGuard guard(m_mutex, FB_FUNCTION);
424 if (m_status.isSuccess() && copyStatus)
425 m_status.save(status);
426 if (stopTask)
427 m_stop = true;
428 }
429
430 MemoryPool* m_pool;
431 Database* m_dbb;

Callers

nothing calls this directly

Calls 3

isSuccessMethod · 0.45
getStateMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected