Skip to content

Commit 5ad902c

Browse files
committed
Revert "store/postgres: Avoid initiating the schema if running against a readonly db"
This reverts commit 536f4ff.
1 parent 8e365ed commit 5ad902c

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

node/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ async fn main() {
593593
subscriptions.clone(),
594594
postgres_conn_pool.clone(),
595595
stores_metrics_registry.clone(),
596-
*EXPERIMENTAL_READONLY_DB,
597596
)),
598597
)
599598
})

store/postgres/src/store.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,12 @@ impl Store {
196196
subscriptions: Option<Arc<SubscriptionManager>>,
197197
pool: Pool<ConnectionManager<PgConnection>>,
198198
registry: Arc<dyn MetricsRegistry>,
199-
readonly_db: bool,
200199
) -> Self {
201200
// Create a store-specific logger
202201
let logger = logger.new(o!("component" => "Store"));
203202

204203
// Create the entities table (if necessary)
205-
if !readonly_db {
206-
initiate_schema(&logger, &pool.get().unwrap(), &pool.get().unwrap());
207-
}
204+
initiate_schema(&logger, &pool.get().unwrap(), &pool.get().unwrap());
208205

209206
// Create the store
210207
let store = StoreInner {

store/test-store/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ lazy_static! {
7676
Some(subscriptions),
7777
postgres_conn_pool,
7878
registry.clone(),
79-
false,
8079
))
8180
})
8281
}).join().unwrap()

0 commit comments

Comments
 (0)