Server IP : 104.21.38.3 / Your IP : 104.23.175.121 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/plugin/innodb_memcached/innodb_memcache/cache-src/ |
Upload File : |
#ifndef ASSOC_H #define ASSOC_H struct assoc { /* how many powers of 2's worth of buckets we use */ unsigned int hashpower; /* Main hash table. This is where we look except during expansion. */ hash_item** primary_hashtable; /* * Previous hash table. During expansion, we look here for keys that haven't * been moved over to the primary yet. */ hash_item** old_hashtable; /* Number of items in the hash table. */ unsigned int hash_items; /* Flag: Are we in the middle of expanding now? */ bool expanding; /* * During expansion we migrate values with bucket granularity; this is how * far we've gotten so far. Ranges from 0 .. hashsize(hashpower - 1) - 1. */ unsigned int expand_bucket; }; /* associative array */ ENGINE_ERROR_CODE assoc_init(struct default_engine *engine); hash_item *assoc_find(struct default_engine *engine, uint32_t hash, const char *key, const size_t nkey); int assoc_insert(struct default_engine *engine, uint32_t hash, hash_item *item); void assoc_delete(struct default_engine *engine, uint32_t hash, const char *key, const size_t nkey); int start_assoc_maintenance_thread(struct default_engine *engine); void stop_assoc_maintenance_thread(struct default_engine *engine); #endif