intr = boost::intrusive;
50 #if __NC_MEMMAN_NEWALLOC && __NC_MEMMAN_USEREALPTR 76: file_id(0), rec_num(0) {
78 bool empty(
void)
const;
88 typedefintr::set_base_hook<intr::tag<SVersMap_tag>,
182intr::base_hook<TVerDataMapHook>,
183intr::constant_time_size<false>,
221 if(
this!= &other) {
314 #if defined(NCBI_OS_MSWIN) 379 return!(left == right);
Mutex created to have minimum possible size (its size is 4 bytes) and to sleep using kernel capabilit...
Class used in all diagnostic logging.
Main working entity in TaskServer.
static int CurSecs(void)
Current time in seconds since epoch (time_t).
uint8_t Uint1
1-byte (8-bit) unsigned integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define HANDLE
An abstraction for a file handle.
constexpr bool empty(list< Ts... >) noexcept
static const size_t kNCMaxBlobChunkSize
Maximum size of blob chunk stored in database.
map< string, SNCBlobSummary * > TNCBlobSumList
static const Uint2 kNCMaxChunksInMap
intr::set_base_hook< intr::tag< SVersMap_tag >, intr::optimize_size< true > > TVerDataMapHook
map< Uint4, CSrvRef< SNCDBFileInfo > > TNCDBFilesMap
Information about all database parts in NetCache storage.
static const Uint4 kNCMaxDBFileId
static const Uint1 kNCMaxBlobMapsDepth
intr::rbtree< SNCBlobVerData, intr::base_hook< TVerDataMapHook >, intr::constant_time_size< false >, intr::compare< SCompareVerAccessTime > > TVerDataMap
bool operator==(SNCDataCoord left, SNCDataCoord right)
const CSrvDiagMsg & operator<<(const CSrvDiagMsg &msg, SNCDataCoord coord)
const Uint8 kNCLargestBlobSize
bool operator!=(SNCDataCoord left, SNCDataCoord right)
static void write_size(CNcbiOstream &stream, size_t size)
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
bool operator()(const SNCBlobVerData &left, const SNCBlobVerData &right) const
bool isExpired(void) const
bool isEqual(const SNCBlobSummary &other) const
bool isOlder(const SNCBlobSummary &other) const
SNCBlobSummary & operator=(const SNCBlobSummary &other)
bool isSameData(const SNCBlobSummary &other) const
Full information about NetCache blob (excluding key)
virtual ~SNCBlobVerData(void)
size_t RequestMemRelease(void)
virtual void DeleteThis(void)
Virtual method "deleting" this object.
void x_DeleteVersion(void)
bool x_WriteCurChunk(char *write_mem, Uint4 write_size)
SNCBlobVerData(const SNCBlobVerData &)
bool x_WriteBlobInfo(void)
void x_FreeChunkMaps(void)
void AddChunkMem(char *mem, Uint4 mem_size)
CNCBlobVerManager * ver_manager
void SetNonReleasable(void)
SNCBlobVerData & operator=(const SNCBlobVerData &)
void RequestDataWrite(void)
SNCBlobVerData(CNCBlobVerManager *mgr)
SNCChunkMaps * chunk_maps
bool x_ExecuteWriteAll(void)
virtual void ExecuteSlice(TSrvThreadNum thr_num)
This is the main method to do all work this task should do.
SNCChunkMaps(Uint2 map_size)
SNCChunkMapInfo * maps[kNCMaxBlobMapsDepth+1]
Information about database part in NetCache storage.
CAtomicCounter cnt_unfinished
virtual ~SNCDBFileInfo(void)
SFileIndexRec * index_head
Uint2 TSrvThreadNum
Type for thread number in TaskServer.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4