File: slabs_mover.h

package info (click to toggle)
memcached 1.6.39-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,320 kB
  • sloc: ansic: 62,281; perl: 12,500; sh: 4,569; makefile: 468; python: 402; xml: 59
file content (19 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SLABS_MOVER_H
#define SLABS_MOVER_H

struct slab_rebal_thread;
struct slab_rebal_thread *start_slab_maintenance_thread(void *storage);
void stop_slab_maintenance_thread(struct slab_rebal_thread *t);

enum reassign_result_type {
    REASSIGN_OK=0, REASSIGN_RUNNING, REASSIGN_BADCLASS, REASSIGN_NOSPARE,
    REASSIGN_SRC_DST_SAME
};

#define SLABS_REASSIGN_ALLOW_EVICTIONS 1
enum reassign_result_type slabs_reassign(struct slab_rebal_thread *t, int src, int dst, int flags);

void slab_maintenance_pause(struct slab_rebal_thread *t);
void slab_maintenance_resume(struct slab_rebal_thread *t);

#endif // SLABS_MOVER_H