Lines Matching refs:commit
203 dlog(LOG_ERR, "commit-destroy: %s", strerror(errno));
207 dlog(LOG_ERR, "commit-create: %s", strerror(errno));
228 /* we already have one commit in progress, skip this. The clientfd
230 if (clientfd && STATE_SYNC(commit).clientfd != -1)
233 switch(STATE_SYNC(commit).state) {
235 gettimeofday(&STATE_SYNC(commit).stats.start, NULL);
236 STATE_SYNC(commit).stats.ok = c->stats.commit_ok;
237 STATE_SYNC(commit).stats.fail = c->stats.commit_fail;
238 STATE_SYNC(commit).clientfd = clientfd;
240 STATE_SYNC(commit).current =
242 STATE_SYNC(commit).current,
245 if (STATE_SYNC(commit).current < CONFIG(hashsize)) {
246 STATE_SYNC(commit).state = COMMIT_STATE_MASTER;
248 write_evfd(STATE_SYNC(commit).evfd);
252 /* calculate the time that commit has taken */
254 timersub(&commit_stop, &STATE_SYNC(commit).stats.start, &res);
257 commit_ok = c->stats.commit_ok - STATE_SYNC(commit).stats.ok;
259 c->stats.commit_fail - STATE_SYNC(commit).stats.fail;
268 dlog(LOG_NOTICE, "commit has taken %lu.%06lu seconds",
272 STATE_SYNC(commit).current = 0;
273 STATE_SYNC(commit).state = COMMIT_STATE_INACTIVE;
294 .commit = NULL,
306 .commit = cache_exp_commit,