Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
LanceCommitLockCallbacks Struct Reference

#include <lance/lance.h>

Public Attributes

LanceCommitLockAcquire lock
 
LanceCommitLockRelease release
 
LanceCommitLeaseDestroy destroy_lease
 
void * callback_ctx
 
LanceCommitLockContextRelease release_context
 

Detailed Description

Foreign commit lock.

lock and release are required; destroy_lease and release_context are optional. The table is copied by lance_commit_lock_new. callback_ctx is borrowed by every callback and may be NULL. Context ownership transfers only when construction succeeds: on failure release_context is never called.

Datasets, scanners and in-flight native jobs retain their own native context owner. Closing a LanceCommitLock handle only drops that handle's owner; retained datasets keep working. Keep the lock handle alive when staging a transaction and pass it to the matching commit entry point.

Definition at line 2274 of file lance.h.

Member Data Documentation

◆ callback_ctx

void* LanceCommitLockCallbacks::callback_ctx

Definition at line 2278 of file lance.h.

◆ destroy_lease

LanceCommitLeaseDestroy LanceCommitLockCallbacks::destroy_lease

Definition at line 2277 of file lance.h.

◆ lock

LanceCommitLockAcquire LanceCommitLockCallbacks::lock

Definition at line 2275 of file lance.h.

◆ release

LanceCommitLockRelease LanceCommitLockCallbacks::release

Definition at line 2276 of file lance.h.

◆ release_context

LanceCommitLockContextRelease LanceCommitLockCallbacks::release_context

Definition at line 2279 of file lance.h.


The documentation for this struct was generated from the following file: