cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 1c0ad45b44827dc6b08b916722864127e4047826 523 bytes (raw)
$ git show HEAD:queue_step.c	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
/*
 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 */
#include "cmogstored.h"

enum mog_next mog_queue_step(struct mog_fd *mfd)
{
	switch (mfd->fd_type) {
	case MOG_FD_TYPE_MGMT:
		return mog_mgmt_queue_step(mfd);
	case MOG_FD_TYPE_HTTP:
	case MOG_FD_TYPE_HTTPGET:
		return mog_http_queue_step(mfd);
	default:
		assert(0 && "BUG: bad fd_type in thread pool queue iterator");
	}
	return MOG_NEXT_IGNORE; /* should never get here */
}

git clone https://yhbt.net/cmogstored.git