dbms: Server: queries with several replicas: development [#METR-14410]

This commit is contained in:
Alexey Arno 2015-01-16 13:48:53 +03:00
parent f1610486fd
commit 43ca983ad1
2 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,10 @@ public:
typedef PoolBase<Connection>::Entry Entry;
virtual Entry get(Settings * settings = nullptr) = 0;
/** Выделяет до указанного количества соединений для работы.
* Соединения предоставляют доступ к разным репликам одного шарда.
* Выкидывает исключение, если не удалось выделить ни одного соединения.
*/
virtual std::vector<Entry> getMany(Settings * settings = nullptr)
{
return std::vector<Entry>{ get(settings) };

View File

@ -164,8 +164,6 @@ protected:
use_many_replicas = false;
connection = &*entries[0];
}
else // XXX Придумать исключение + сообщение
throw Exception("");
}
else
{