Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antirez/disque
/ functions
Functions
1,943 in github.com/antirez/disque
⨍
Functions
1,943
◇
Types & classes
265
↓ 1 callers
Function
ckh_shrink
deps/jemalloc/src/ckh.c:301
↓ 1 callers
Function
clearNodeFailureIfNeeded
This function is called only if a node is marked as FAIL, but we are able * to reach it again. It checks if there are the conditions to undo the FAIL
src/cluster.c:841
↓ 1 callers
Function
cliAuth
Send AUTH command to the server */
src/disque-cli.c:305
↓ 1 callers
Function
cliFormatReplyCSV
src/disque-cli.c:477
↓ 1 callers
Function
cliFormatReplyTTY
src/disque-cli.c:376
↓ 1 callers
Function
cliInitHelp
src/disque-cli.c:175
↓ 1 callers
Function
cliOutputGenericHelp
Print generic help. */
src/disque-cli.c:214
↓ 1 callers
Function
cliOutputHelp
Output all command help, filtering by group or command name. */
src/disque-cli.c:228
↓ 1 callers
Function
clientsCron
src/server.c:668
↓ 1 callers
Function
clientsCronHandleDelayedJobReplication
src/job.c:1098
↓ 1 callers
Function
clientsCronHandleTimeout
Check for timeouts. Returns non-zero if the client was terminated. * The function gets the current time in milliseconds as argument since * it gets
src/server.c:611
↓ 1 callers
Function
clientsCronResizeQueryBuffer
The client query buffer is an sds.c string that can end with a lot of * free space not used, this function reclaims space if needed. * * The functi
src/server.c:641
↓ 1 callers
Function
clientsCronSendNeedJobs
If a client is blocked into one or mutliple queues waiting for * data, we should periodically call needJobsForQueue() with the * queues name in orde
src/queue.c:386
↓ 1 callers
Function
clusterBeforeSleep
This function is called before the event handler returns to sleep for * events. It is useful to perform operations that must be done ASAP in * react
src/cluster.c:2287
↓ 1 callers
Function
clusterBlacklistAddNode
Cleanup the blacklist and add a new node ID to the black list. */
src/cluster.c:759
↓ 1 callers
Function
clusterBlacklistExists
Return non-zero if the specified node ID exists in the blacklist. * You don't need to pass an sds string here, any pointer to 40 bytes * will work.
src/cluster.c:777
↓ 1 callers
Function
clusterBroadcastPause
Same as clusterSendPause() but broadcasts the message to the * whole cluster. */
src/cluster.c:2053
↓ 1 callers
Function
clusterBroadcastWorking
WORKING is like QUEUED, but will always force the receiver to dequeue. */
src/cluster.c:1970
↓ 1 callers
Function
clusterCron
This is executed 10 times every second */
src/cluster.c:2100
↓ 1 callers
Function
clusterGenNodeDescription
Generate a csv-alike representation of the specified cluster node. * See clusterGenNodesDescription() top comment for more information. * * The fun
src/cluster.c:2386
↓ 1 callers
Function
clusterHandshakeInProgress
Return true if we already have a node in HANDSHAKE state matching the * specified ip address and port number. This function is used in order to * av
src/cluster.c:855
↓ 1 callers
Function
clusterInit
src/cluster.c:324
↓ 1 callers
Function
clusterLoadConfig
Load the cluster config from 'filename'. * * If the file does not exist or is zero-length (this may happen because * when we lock the nodes.conf fi
src/cluster.c:84
↓ 1 callers
Function
clusterLockConfig
Lock the cluster config using flock(), and leaks the file descritor used to * acquire the lock so that the file will be locked forever. * * This wo
src/cluster.c:286
↓ 1 callers
Function
clusterNodeAddFailureReport
This function is called every time we get a failure report from a node. * The side effect is to populate the fail_reports list (or to update * the t
src/cluster.c:550
↓ 1 callers
Function
clusterNodeFailureReportsCount
Return the number of external nodes that believe 'node' is failing, * not including this node, that may have a PFAIL or FAIL state for this * node a
src/cluster.c:630
↓ 1 callers
Function
clusterProcessPacket
When this function is called, there is a packet to process starting * at node->rcvbuf. Releasing the buffer is up to the caller, so this * function
src/cluster.c:1051
↓ 1 callers
Function
clusterRenameNode
This is only used after the handshake. When we connect a given IP/PORT * as a result of CLUSTER MEET we don't have the node name yet, so we * pick a
src/cluster.c:700
↓ 1 callers
Function
clusterReset
Reset a node performing a soft or hard reset: * * 1) All other nodes are forget. * 2) Only for hard reset: a new Node ID is generated. * 3) The ne
src/cluster.c:404
↓ 1 callers
Function
clusterSendFail
Send a FAIL message to all the nodes we are able to contact. * The FAIL message is sent when we detect that a node is failing * (CLUSTER_NODE_PFAIL)
src/cluster.c:1801
↓ 1 callers
Function
clusterSendGotJob
Send a GOTJOB message to the specified node, if connected. * GOTJOB messages only contain the ID of the job, and are acknowledges * that the job was
src/cluster.c:1945
↓ 1 callers
Function
clusterSendPause
Send a PAUSE message to the specified set of nodes. */
src/cluster.c:2028
↓ 1 callers
Function
clusterSendWillQueue
Tell the receiver to reply with a QUEUED message if it has the job * already queued, to prevent us from queueing it in the next few * milliseconds.
src/cluster.c:1986
↓ 1 callers
Function
clusterSendYourJobs
Send a YOURJOBS message to the specified node, with a serialized copy of * the jobs referneced by the 'jobs' array and containing 'count' jobs. */
src/cluster.c:2059
↓ 1 callers
Function
clusterShuffleReachableNodes
Shuffle the array of reachable nodes using the Fisher Yates method so the * caller can just pick the first N to send messages to N random nodes. * *
src/cluster.c:2475
↓ 1 callers
Function
compareNodeIDsByJob
Disque aims to avoid to deliver duplicated message whenever possible, so * it is always desirable that a given message is not queued by multiple owne
src/job.c:168
↓ 1 callers
Function
compareStringObjects
Wrapper for compareStringObjectsWithFlags() using binary comparison. */
src/object.c:368
↓ 1 callers
Function
completeLine
This is an helper function for linenoiseEdit() and is called when the * user types the <tab> key in order to complete the string currently in the *
deps/linenoise/linenoise.c:347
↓ 1 callers
Function
completionCallback
src/disque-cli.c:272
↓ 1 callers
Function
compute_something_fast
This is just some computation the compiler can't optimize out. * Should run in less than 100-200 microseconds even using very * slow hardware. Runs
src/disque-cli.c:1810
↓ 1 callers
Function
configEnumGetName
Get enum name from value. If no match is found NULL is returned. */
src/config.c:99
↓ 1 callers
Function
configGetCommand
src/config.c:726
↓ 1 callers
Function
configSetCommand
src/config.c:501
↓ 1 callers
Function
convertToSds
Turn the plain C strings into Sds strings */
src/disque-cli.c:870
↓ 1 callers
Function
createClient
src/networking.c:68
↓ 1 callers
Function
createFakeClient
In Disque commands are always executed in the context of a client, so in * order to load the append only file we need to create a fake client. */
src/aof.c:524
↓ 1 callers
Function
createLatencyReport
Create a human readable report of latency events for this Disque instance. */
src/latency.c:190
↓ 1 callers
Function
createPidFile
src/server.c:2335
↓ 1 callers
Function
createSharedObjects
src/server.c:895
↓ 1 callers
Function
createSparklineSequence
Create a new sequence. */
src/sparkline.c:57
↓ 1 callers
Function
ctl_arena_refresh
deps/jemalloc/src/ctl.c:617
↓ 1 callers
Function
ctl_arena_stats_amerge
deps/jemalloc/src/ctl.c:540
↓ 1 callers
Function
ctl_arena_stats_smerge
deps/jemalloc/src/ctl.c:558
↓ 1 callers
Function
ctl_boot
deps/jemalloc/src/ctl.c:993
↓ 1 callers
Function
ctl_bymib
deps/jemalloc/src/ctl.c:943
↓ 1 callers
Function
ctl_grow
deps/jemalloc/src/ctl.c:639
↓ 1 callers
Function
ctl_nametomib
deps/jemalloc/src/ctl.c:928
↓ 1 callers
Function
ctl_postfork_child
deps/jemalloc/src/ctl.c:1019
↓ 1 callers
Function
ctl_postfork_parent
deps/jemalloc/src/ctl.c:1012
↓ 1 callers
Function
ctl_prefork
deps/jemalloc/src/ctl.c:1005
↓ 1 callers
Function
d2s
deps/jemalloc/src/util.c:257
↓ 1 callers
Function
daemonize
src/server.c:2344
↓ 1 callers
Function
databasesCron
This function handles 'background' operations we are required to do * incrementally in the Disque server, such as active key expiring, resizing, * r
src/server.c:707
↓ 1 callers
Function
deleteJobFromCluster
This function sends a DELJOB message to all the nodes that may have * a copy of the job, in order to trigger deletion of the job. * It is used when
src/job.c:895
↓ 1 callers
Function
dictAdd
Add an element to the target hash table */
deps/hiredis/dict.c:135
↓ 1 callers
Function
dictDelete
Search and remove an element */
deps/hiredis/dict.c:182
↓ 1 callers
Function
dictDisableResize
src/dict.c:998
↓ 1 callers
Function
dictEnableResize
src/dict.c:994
↓ 1 callers
Function
dictGenCaseHashFunction
And a case insensitive hash function (based on djb hash) */
src/dict.c:147
↓ 1 callers
Function
dictGenHashFunction
Generic hash function (a popular one from Bernstein). * I tested a few and this was the best. */
deps/hiredis/dict.c:53
↓ 1 callers
Function
dictGetHashFunctionSeed
src/dict.c:88
↓ 1 callers
Function
dictSetHashFunctionSeed
src/dict.c:84
↓ 1 callers
Function
disableWatchdog
Disable the software watchdog. */
src/debug.c:666
↓ 1 callers
Function
disqueAsciiArt
src/server.c:2387
↓ 1 callers
Function
enableWatchdog
Enable the software watchdog with the specified period in milliseconds. */
src/debug.c:643
↓ 1 callers
Function
evalMode
src/disque-cli.c:988
↓ 1 callers
Function
extent_node_arena_set
deps/jemalloc/include/jemalloc/internal/extent.h:146
↓ 1 callers
Function
extent_node_committed_set
deps/jemalloc/include/jemalloc/internal/extent.h:174
↓ 1 callers
Function
factorial
deps/jemalloc/test/unit/math.c:23
↓ 1 callers
Function
ffsl
deps/jemalloc/include/msvc_compat/strings.h:9
↓ 1 callers
Function
findBigKeys
src/disque-cli.c:1492
↓ 1 callers
Function
formatPeerID
This is a helper function for genClientPeerID(). * It writes the specified ip/port to "peerid" as a null termiated string * in the form ip:port if i
src/networking.c:1185
↓ 1 callers
Function
freeClientsInAsyncFreeQueue
src/networking.c:716
↓ 1 callers
Function
freeClusterNode
Free a node, however if the node was part of the cluster (no handshake * flag is set), the node is actually just disconnected, moved into * a delete
src/cluster.c:644
↓ 1 callers
Function
freeFakeClient
src/aof.c:553
↓ 1 callers
Function
freeHistory
Free the history, but does not reset it. Only used when we have to * exit() to avoid memory leaks are reported by valgrind & co. */
deps/linenoise/linenoise.c:987
↓ 1 callers
Function
freeSparklineSequence
Free a sequence. */
src/sparkline.c:80
↓ 1 callers
Function
freeStringObject
src/object.c:164
↓ 1 callers
Function
func2
* This function represents a function used in the initialization * by init_by_array * @param x 32-bit integer * @return 32-bit integer */
deps/jemalloc/test/src/SFMT.c:376
↓ 1 callers
Function
genClientPeerID
A Disque "Peer ID" is a colon separated ip:port pair. * For IPv4 it's in the form x.y.z.k:port, example: "127.0.0.1:1234". e For IPv6 addresses we u
src/networking.c:1205
↓ 1 callers
Function
gen_rand64_range
Generate a random integer in [0..limit). */
deps/jemalloc/test/src/SFMT.c:511
↓ 1 callers
Function
generateJobID
Generate a new Job ID and writes it to the string pointed by 'id' * (NOT including a null term), that must be JOB_ID_LEN or more. * * An ID is 40 b
src/job.c:74
↓ 1 callers
Function
getClientsMaxBuffers
src/networking.c:1163
↓ 1 callers
Function
getColumns
Try to get the number of columns in the current terminal, or assume 80 * if it fails. */
deps/linenoise/linenoise.c:283
↓ 1 callers
Function
getDbSize
src/disque-cli.c:1384
↓ 1 callers
Function
getDoubleFromObject
src/object.c:401
↓ 1 callers
Function
getInfoField
Return the specified INFO field from the INFO command output "info". * A new buffer is allocated for the result, that needs to be free'd. * If the f
src/disque-cli.c:1630
↓ 1 callers
Function
getKeySizes
src/disque-cli.c:1447
↓ 1 callers
Function
getKeyTypes
src/disque-cli.c:1421
↓ 1 callers
Function
getLongDoubleFromObject
src/object.c:443
← previous
next →
1,001–1,100 of 1,943, ranked by callers