mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
149c6c1fc1
|
@ -1125,12 +1125,12 @@ static TRI_doc_mptr_t CreateShapedJson (TRI_doc_operation_context_t* context,
|
|||
TRI_CopyString(keyBody, key, keySize);
|
||||
}
|
||||
else {
|
||||
// create key from did
|
||||
sprintf(ridBuffer,"%d", (unsigned int) marker._rid);
|
||||
keySize = strlen(ridBuffer) + 1;
|
||||
// create key from did
|
||||
TRI_StringUInt64InPlace(marker._rid, ridBuffer);
|
||||
keySize = strlen(ridBuffer) + 1;
|
||||
keyBodySize = ((keySize + TRI_DF_BLOCK_ALIGN - 1) / TRI_DF_BLOCK_ALIGN) * TRI_DF_BLOCK_ALIGN;
|
||||
keyBody = TRI_Allocate(TRI_CORE_MEM_ZONE, keyBodySize, true);
|
||||
TRI_CopyString(keyBody, ridBuffer, keySize);
|
||||
TRI_CopyString(keyBody, ridBuffer, keySize);
|
||||
}
|
||||
|
||||
marker._offsetKey = sizeof(marker);
|
||||
|
@ -1175,7 +1175,7 @@ static TRI_doc_mptr_t CreateShapedJson (TRI_doc_operation_context_t* context,
|
|||
}
|
||||
else {
|
||||
// create key from did
|
||||
sprintf(ridBuffer,"%d", (unsigned int) marker.base._rid);
|
||||
TRI_StringUInt64InPlace(marker.base._rid, ridBuffer);
|
||||
keySize = strlen(ridBuffer) + 1;
|
||||
keyBodySize = ((keySize + fromSize + toSize + TRI_DF_BLOCK_ALIGN - 1) / TRI_DF_BLOCK_ALIGN) * TRI_DF_BLOCK_ALIGN;
|
||||
keyBody = TRI_Allocate(TRI_CORE_MEM_ZONE, keyBodySize, true);
|
||||
|
|
Loading…
Reference in New Issue