MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_copy_rootpages

Function get_copy_rootpages

db/sqlmaster.c:518–525  ·  view source on GitHub ↗

copy rootpage info so a sql thread as a local copy */

Source from the content-addressed store, hash-verified

516/* copy rootpage info so a sql thread as a local copy
517 */
518inline int get_copy_rootpages(struct sql_thread *thd)
519{
520 int ret;
521 rdlock_schema_lk();
522 ret = get_copy_rootpages_nolock(thd);
523 unlock_schema_lk();
524 return ret;
525}
526
527pthread_rwlock_t sqlite_rootpages = PTHREAD_RWLOCK_INITIALIZER;
528

Callers 2

_fdb_svc_cursor_startFunction · 0.85
stat4dumpFunction · 0.85

Calls 1

Tested by

no test coverage detected