mirror of https://gitee.com/bigwinds/arangodb
changed function signature
This commit is contained in:
parent
9a4a0e5dfb
commit
741dec2f7a
|
@ -644,9 +644,12 @@ namespace triagens {
|
|||
void const* data,
|
||||
const bool forceSync,
|
||||
const bool lock) {
|
||||
|
||||
TRI_doc_operation_context_t context;
|
||||
TRI_InitContextPrimaryCollection(&context, primary, TRI_DOC_UPDATE_LAST_WRITE, forceSync);
|
||||
|
||||
// TODO: set transaction lock here
|
||||
return primary->insert(primary, markerType, key, mptr, shaped, data, lock, forceSync);
|
||||
return primary->insert(&context, markerType, key, mptr, shaped, data, lock, forceSync);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -320,7 +320,7 @@ typedef struct TRI_primary_collection_s {
|
|||
void (*createHeader) (struct TRI_primary_collection_s*, TRI_datafile_t*, TRI_df_marker_t const*, size_t, TRI_doc_mptr_t*, void const* data);
|
||||
void (*updateHeader) (struct TRI_primary_collection_s*, TRI_datafile_t*, TRI_df_marker_t const*, size_t, TRI_doc_mptr_t const*, TRI_doc_mptr_t*);
|
||||
|
||||
int (*insert) (struct TRI_primary_collection_s*, TRI_df_marker_type_e, const TRI_voc_key_t, TRI_doc_mptr_t*, TRI_shaped_json_t const*, void const*, const bool, const bool);
|
||||
int (*insert) (struct TRI_doc_operation_context_s*, TRI_df_marker_type_e, const TRI_voc_key_t, TRI_doc_mptr_t*, TRI_shaped_json_t const*, void const*, const bool, const bool);
|
||||
|
||||
int (*read) (struct TRI_doc_operation_context_s*, TRI_doc_mptr_t*, const TRI_voc_key_t);
|
||||
|
||||
|
|
Loading…
Reference in New Issue