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_PERCENT_DEFAULT 100 |
| #define as_scan_select_inita |
( |
|
__scan, |
|
|
|
__n |
|
) |
| |
Value:do { \
if ( (__scan) != NULL && (__scan)->select.entries == NULL ) {\
if ( (__scan)->select.entries ) { \
(__scan)->select._free = false;\
(__scan)->select.capacity = (__n);\
(__scan)->select.size = 0;\
}\
} \
} while(0)
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 501 of file as_scan.h.
Priority levels for a scan operation.
| Enumerator |
|---|
| AS_SCAN_PRIORITY_AUTO |
The cluster will auto adjust the scan priority.
|
| AS_SCAN_PRIORITY_LOW |
Low priority scan.
|
| AS_SCAN_PRIORITY_MEDIUM |
Medium priority scan.
|
| AS_SCAN_PRIORITY_HIGH |
High priority scan.
|
Definition at line 65 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 92 of file as_scan.h.
| bool as_scan_set_concurrent |
( |
as_scan * |
scan, |
|
|
bool |
concurrent |
|
) |
| |
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.