|
|
@ -4062,6 +4062,9 @@ current: |
|
|
|
/* same size, just replace it */ |
|
|
|
/* same size, just replace it */ |
|
|
|
if (!F_ISSET(leaf->mn_flags, F_BIGDATA) && |
|
|
|
if (!F_ISSET(leaf->mn_flags, F_BIGDATA) && |
|
|
|
NODEDSZ(leaf) == data->mv_size) { |
|
|
|
NODEDSZ(leaf) == data->mv_size) { |
|
|
|
|
|
|
|
if (F_ISSET(flags, MDB_RESERVE)) |
|
|
|
|
|
|
|
data->mv_data = NODEDATA(leaf); |
|
|
|
|
|
|
|
else |
|
|
|
memcpy(NODEDATA(leaf), data->mv_data, data->mv_size); |
|
|
|
memcpy(NODEDATA(leaf), data->mv_data, data->mv_size); |
|
|
|
goto done; |
|
|
|
goto done; |
|
|
|
} |
|
|
|
} |
|
|
|