MCPcopy Create free account
hub / github.com/apache/cloudberry / prepare_buf

Function prepare_buf

src/bin/pg_test_fsync/pg_test_fsync.c:227–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227static void
228prepare_buf(void)
229{
230 int ops;
231
232 /* write random data into buffer */
233 for (ops = 0; ops < DEFAULT_XLOG_SEG_SIZE; ops++)
234 full_buf[ops] = random();
235
236 buf = (char *) TYPEALIGN(XLOG_BLCKSZ, full_buf);
237}
238
239static void
240test_open(void)

Callers 1

mainFunction · 0.85

Calls 1

randomFunction · 0.85

Tested by

no test coverage detected