retire/catalog_chunks.cc
static void enforce_mem_limit() {
      if (!sqlite_mem_enforced) {
         sqlite3_soft_heap_limit(SQLITE_THREAD_MEM*1024*1024);
         sqlite_mem_enforced = true;
      }
   }
/**
    * Since the functions in here can be called from multiple
    * threads, we have to enforce void sqlite3_soft_heap_limit(int)
    * the hard way (via TLS).
    */
Since the functions in here can be called from multiple
threads, we have to enforce void sqlite3_soft_heap_limit(int)
the hard way (via TLS).
Since the functions in here can be called from multiple threads we have to enforce void sqlite3_soft_heap_limit ( int ) the hard way ( via TLS ) .
static void enforce_mem_limit() {
      if (!sqlite_mem_enforced) {
         sqlite3_soft_heap_limit(SQLITE_THREAD_MEM*1024*1024);
         sqlite_mem_enforced = true;
      }
   }
static void enforce_mem_limit ( ) { if ( ! sqlite_mem_enforced ) { sqlite3_soft_heap_limit ( SQLITE_THREAD_MEM * 1024 * 1024 ) ; sqlite_mem_enforced = true ; } }
Since the functions in here can be called from multiple
 threads, we have to enforce void sqlite3_soft_heap_limit(int)
 the hard way (via TLS).
Since the functions in here can be called from multiple threads we have to enforce void sqlite3_soft_heap_limit ( int ) the hard way ( via TLS ) .