MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ACLLogEntry

Class ACLLogEntry

src/acl.cpp:1767–1775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1765
1766/* This structure defines an entry inside the ACL log. */
1767typedef struct ACLLogEntry {
1768 uint64_t count; /* Number of times this happened recently. */
1769 int reason; /* Reason for denying the command. ACL_DENIED_*. */
1770 int context; /* Toplevel, Lua or MULTI/EXEC? ACL_LOG_CTX_*. */
1771 sds object; /* The key name or command name. */
1772 sds username; /* User the client is authenticated with. */
1773 mstime_t ctime; /* Milliseconds time of last update to this entry. */
1774 sds cinfo; /* Client info (last client if updated). */
1775} ACLLogEntry;
1776
1777/* This function will check if ACL entries 'a' and 'b' are similar enough
1778 * that we should actually update the existing entry in our ACL log instead

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected