Go to the source code of this file.
#define AS_SCAN_CONCURRENT_DEFAULT false |
#define AS_SCAN_DESERIALIZE_DEFAULT true |
#define AS_SCAN_NOBINS_DEFAULT false |
#define as_scan_select_inita |
( |
|
__scan, |
|
|
|
__n |
|
) |
| |
Value:do {\
if ((__scan)->select.entries == NULL) {\
if ((__scan)->select.entries) {\
(__scan)->select.capacity = (__n);\
(__scan)->select.size = 0;\
(__scan)->select._free = false;\
}\
}\
} while(0)
char as_bin_name[AS_BIN_NAME_MAX_SIZE]
Initializes as_scan.select
with a capacity of n
using alloca
For heap allocation, use as_scan_select_init()
.
- Parameters
-
__scan | The scan to initialize. |
__n | The number of bins to allocate. |
Definition at line 439 of file as_scan.h.
The status of a particular background scan.
Enumerator |
---|
AS_SCAN_STATUS_UNDEF |
The scan status is undefined. This is likely due to the status not being properly checked.
|
AS_SCAN_STATUS_INPROGRESS |
The scan is currently running.
|
AS_SCAN_STATUS_ABORTED |
The scan was aborted. Due to failure or the user.
|
AS_SCAN_STATUS_COMPLETED |
The scan completed successfully.
|
Definition at line 56 of file as_scan.h.
Scan all the nodes in prallel
- Parameters
-
scan | The scan to set the concurrency on. |
concurrent | If true, scan all the nodes in parallel |
- Returns
- On success, true. Otherwise an error occurred.