Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/VecSim/vec_sim_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ typedef void (*JobCallback)(AsyncJob *);
typedef int (*SubmitCB)(void *job_queue, void *index_ctx, AsyncJob **jobs, JobCallback *CBs,
size_t jobs_len);

/**
* Callback signature for throttle control in disk tiered index.
*/
typedef void (*ThrottleCB)(void);

/**
* @brief Index initialization parameters.
*
Expand Down Expand Up @@ -203,9 +208,9 @@ typedef struct {
} TieredHNSWParams;

// A struct that contains HNSW Disk tiered index specific params.
// Consider removing and use TieredHNSWParams instead if they both share swapJobThreshold
typedef struct {
char _placeholder; // Reserved for future fields and avoid compiler errors
ThrottleCB enableThrottleCB; // call to enable postponing of Redis commands
ThrottleCB disableThrottleCB; // call to disable postponing of Redis commands
} TieredHNSWDiskParams;

// A struct that contains SVS tiered index specific params.
Expand Down
Loading