Skip to content

Commit 984a76f

Browse files
committed
test/rgw/lua: use stats polling instead of sleep
this makes the test more consistent as well as faster fixes: https://tracker.ceph.com/issues/68335 Signed-off-by: Yuval Lifshitz <[email protected]>
1 parent 368b3cb commit 984a76f

File tree

2 files changed

+117
-66
lines changed

2 files changed

+117
-66
lines changed

src/rgw/rgw_lua_background.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ class Background : public RGWRealmReloader::Pauser {
153153

154154
void run();
155155

156-
protected:
157156
std::string rgw_script;
158-
virtual int read_script();
157+
int read_script();
159158

160159
public:
161160
Background(rgw::sal::Driver* _driver,
@@ -173,7 +172,7 @@ class Background : public RGWRealmReloader::Pauser {
173172
std::unique_lock cond_lock(table_mutex);
174173
rgw_map[key] = value;
175174
}
176-
175+
177176
// update the manager after
178177
void set_manager(rgw::sal::LuaManager* _lua_manager);
179178
void pause() override;

0 commit comments

Comments
 (0)