Skip to content

Commit

Permalink
fix typos and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonand committed Jan 5, 2024
1 parent 8376c71 commit fb42bdb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Expand Up @@ -873,7 +873,7 @@ Tags:
* If _all_ volumes tagged, they are prioritized in given order.
* If _some_ volumes tagged, those without this tag have higher priority than those having the tag. Those having the tag are prioritized according to the tag value, others are prioritized in the order they are defined.
* If _no_ volume tagged, their priority is set correspondingly to their order they are declared in configuration.
* If two or more volumes have the same setting value, order among them is undefined.
* If two or more volumes have the same setting value, they are prioritized in the order they are defined.

Configuration examples:

Expand Down
Expand Up @@ -692,7 +692,7 @@ TTL d + INTERVAL 1 MONTH GROUP BY k1, k2 SET x = max(x), y = min(y);
* Если _все_ тома имеют этот параметр, они приоритизируются в указанном порядке.
* Если его имеют лишь _некоторые_, то не имеющие этого параметра тома имеют более высокий приоритет чем те, у которых он указан. Те, у которых он указан, приоритизируются в соответствии со значением тега, приоритет остальных определяется порядком описания в конфигурационном файле относительно друг друга.
* Если _ни одному_ тому не присвоен этот параметр, их порядок определяется порядком описания в конфигурационном файле.
* Если нескольким томам присвоено одно и то же значение приоритета, порядок их приоритетов между собой не определён.
* Если нескольким томам присвоено одно и то же значение приоритета, порядок их приоритетов между собой определяется порядком описания в конфигурационном файле.

Примеры конфигураций:

Expand Down
2 changes: 1 addition & 1 deletion src/Disks/StoragePolicy.cpp
Expand Up @@ -72,7 +72,7 @@ StoragePolicy::StoragePolicy(
std::stable_sort(volumes.begin(), volumes.end(),
[](const VolumePtr a, const VolumePtr b)
{
return a->volume_priority <= b->volume_priority;
return a->volume_priority < b->volume_priority;
}
);

Expand Down
1 change: 0 additions & 1 deletion tests/config/config.d/storage_conf_02961.xml
Expand Up @@ -17,7 +17,6 @@
<type>local</type>
<path>disk4_02961/</path>
</disk4_02961>

</disks>
<policies>
<policy_02961>
Expand Down

0 comments on commit fb42bdb

Please sign in to comment.