|
38 | 38 | import io.supertokens.pluginInterface.exceptions.DbInitException; |
39 | 39 | import io.supertokens.pluginInterface.exceptions.InvalidConfigException; |
40 | 40 | import io.supertokens.pluginInterface.exceptions.StorageQueryException; |
41 | | -import io.supertokens.pluginInterface.multitenancy.TenantConfig; |
42 | 41 | import io.supertokens.pluginInterface.multitenancy.TenantIdentifier; |
43 | | -import io.supertokens.session.refreshToken.RefreshTokenKey; |
44 | | -import io.supertokens.signingkeys.AccessTokenSigningKey; |
45 | | -import io.supertokens.signingkeys.JWTSigningKey; |
46 | | -import io.supertokens.signingkeys.SigningKeys; |
47 | 42 | import io.supertokens.storageLayer.StorageLayer; |
48 | 43 | import io.supertokens.version.Version; |
49 | 44 | import io.supertokens.webserver.Webserver; |
@@ -210,12 +205,9 @@ private void init() throws IOException, StorageQueryException { |
210 | 205 | MultitenancyHelper.getInstance(this).loadConfig(new ArrayList<>()); |
211 | 206 |
|
212 | 207 | if (!StorageLayer.isInMemDb(this)) { |
213 | | - // we want to load storage layer once again so that the base storage also contains the right |
214 | | - // tenant identifier set passed to the init. So we close the base storage layer and also clear |
215 | | - // all the resources for storage layer |
216 | | - StorageLayer.getBaseStorage(this).stopLogging(); |
| 208 | + // we want to init storage connection once again so that the base storage also contains the right |
| 209 | + // tenant identifier set passed to the init. So we call the resetPostConnectCallbackForBaseTenantStorage. |
217 | 210 | StorageLayer.getBaseStorage(this).close(); |
218 | | - this.getResourceDistributor().clearAllResourcesWithResourceKey(StorageLayer.RESOURCE_KEY); |
219 | 211 | } |
220 | 212 |
|
221 | 213 | MultitenancyHelper.getInstance(this).loadStorageLayer(); |
|
0 commit comments