Moved blob_record_t into transactional.h (part of transition to using
slot type lookup tables.)
This commit is contained in:
parent
8bec3d6175
commit
e56c46b95c
3 changed files with 11 additions and 6 deletions
|
@ -264,6 +264,14 @@ typedef struct {
|
|||
signed long long size;
|
||||
} recordid;
|
||||
|
||||
typedef struct {
|
||||
size_t offset;
|
||||
size_t size;
|
||||
unsigned fd : 1;
|
||||
} blob_record_t;
|
||||
|
||||
|
||||
|
||||
extern const recordid ROOT_RECORD;
|
||||
extern const recordid NULLRID;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include <unistd.h>
|
||||
#include <config.h>
|
||||
#include <lladd/common.h>
|
||||
|
||||
|
@ -137,6 +138,8 @@ void openBlobStore() {
|
|||
|
||||
dirtyBlobs = pblHtCreate();
|
||||
pthread_mutex_init(&blob_hash_mutex, NULL);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/** Discards all changes to dirty blobs, and closes the blob store.
|
||||
|
|
|
@ -70,12 +70,6 @@ void commitBlobs(int xid);
|
|||
|
||||
void abortBlobs(int xid);
|
||||
|
||||
typedef struct {
|
||||
size_t offset;
|
||||
size_t size;
|
||||
unsigned fd : 1;
|
||||
} blob_record_t;
|
||||
|
||||
|
||||
compensated_function recordid preAllocBlob(int xid, long blobsize);
|
||||
compensated_function recordid preAllocBlobFromPage(int xid, long page, long blobsize);
|
||||
|
|
Loading…
Reference in a new issue