* Flush page cached in BloomBuildState. */
| 44 | * Flush page cached in BloomBuildState. |
| 45 | */ |
| 46 | static void |
| 47 | flushCachedPage(Relation index, BloomBuildState *buildstate) |
| 48 | { |
| 49 | Page page; |
| 50 | Buffer buffer = BloomNewBuffer(index); |
| 51 | GenericXLogState *state; |
| 52 | |
| 53 | state = GenericXLogStart(index); |
| 54 | page = GenericXLogRegisterBuffer(state, buffer, GENERIC_XLOG_FULL_IMAGE); |
| 55 | memcpy(page, buildstate->data.data, BLCKSZ); |
| 56 | GenericXLogFinish(state); |
| 57 | UnlockReleaseBuffer(buffer); |
| 58 | } |
| 59 | |
| 60 | /* |
| 61 | * (Re)initialize cached page in BloomBuildState. |
no test coverage detected