61 |
* |
* |
62 |
* Parameters: |
* Parameters: |
63 |
* dbp: pointer to access method |
* dbp: pointer to access method |
64 |
|
* abandon: 1: don't sync, 0: sync |
65 |
* |
* |
66 |
* Returns: |
* Returns: |
67 |
* RET_ERROR, RET_SUCCESS |
* RET_ERROR, RET_SUCCESS |
83 |
} |
} |
84 |
|
|
85 |
/* Sync the tree. */ |
/* Sync the tree. */ |
86 |
|
/* |
87 |
|
* If abandon flag is set, omit writing to the disk. |
88 |
|
* Since the writing spend much time, you should use this flag |
89 |
|
* when you remove the file after closing. |
90 |
|
*/ |
91 |
if (!abandon && __bt_sync(dbp, 0) == RET_ERROR) |
if (!abandon && __bt_sync(dbp, 0) == RET_ERROR) |
92 |
return (RET_ERROR); |
return (RET_ERROR); |
93 |
|
|