2011-09-13 15:59:48 +02:00
|
|
|
/* Exported API */
|
|
|
|
void bioInit(void);
|
2011-09-15 15:46:29 +02:00
|
|
|
void bioCreateBackgroundJob(int type, void *arg1, void *arg2, void *arg3);
|
2011-09-14 18:39:29 +02:00
|
|
|
unsigned long long bioPendingJobsOfType(int type);
|
|
|
|
void bioWaitPendingJobsLE(int type, unsigned long long num);
|
2011-09-15 15:46:29 +02:00
|
|
|
time_t bioOlderJobOfType(int type);
|
2011-09-13 15:59:48 +02:00
|
|
|
|
|
|
|
/* Background job opcodes */
|
2011-09-15 15:46:29 +02:00
|
|
|
#define REDIS_BIO_CLOSE_FILE 0 /* Deferred close(2) syscall. */
|
2011-09-15 18:25:53 +02:00
|
|
|
#define REDIS_BIO_AOF_FSYNC 1 /* Deferred AOF fsync. */
|
|
|
|
#define REDIS_BIO_NUM_OPS 2
|