| 92 | } |
| 93 | |
| 94 | inline void ReopenLog() { |
| 95 | TIntrusivePtr<TReopener> reopener(new TReopener(this)); |
| 96 | |
| 97 | if (!Queue_.Add(reopener.Get())) { |
| 98 | reopener->UnRef(); // Ref() was called in constructor |
| 99 | ythrow yexception() << "log queue exhausted"; |
| 100 | } |
| 101 | |
| 102 | reopener->Wait(); |
| 103 | } |
| 104 | |
| 105 | inline void ReopenLogNoFlush() { |
| 106 | Slave_->ReopenLogNoFlush(); |