mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
sandbox-classic: Remove default parameters in SqlLedger.Owner
. (#10718)
* sandbox-classic: Remove default parameters in `SqlLedger.Owner`. The defaults can be dangerous. CHANGELOG_BEGIN CHANGELOG_END * sandbox-classic: Revert LedgerResource's index schema to the mutable one.
This commit is contained in:
parent
9ef3377864
commit
f5e17567f9
@ -87,9 +87,9 @@ private[sandbox] object SqlLedger {
|
|||||||
metrics: Metrics,
|
metrics: Metrics,
|
||||||
lfValueTranslationCache: LfValueTranslationCache.Cache,
|
lfValueTranslationCache: LfValueTranslationCache.Cache,
|
||||||
engine: Engine,
|
engine: Engine,
|
||||||
validatePartyAllocation: Boolean = false,
|
validatePartyAllocation: Boolean,
|
||||||
enableAppendOnlySchema: Boolean = false,
|
enableAppendOnlySchema: Boolean,
|
||||||
enableCompression: Boolean = false,
|
enableCompression: Boolean,
|
||||||
)(implicit mat: Materializer, loggingContext: LoggingContext)
|
)(implicit mat: Materializer, loggingContext: LoggingContext)
|
||||||
extends ResourceOwner[Ledger] {
|
extends ResourceOwner[Ledger] {
|
||||||
|
|
||||||
|
@ -93,6 +93,9 @@ private[sandbox] object LedgerResource {
|
|||||||
metrics = new Metrics(metrics),
|
metrics = new Metrics(metrics),
|
||||||
lfValueTranslationCache = LfValueTranslationCache.Cache.none,
|
lfValueTranslationCache = LfValueTranslationCache.Cache.none,
|
||||||
engine = new Engine(),
|
engine = new Engine(),
|
||||||
|
validatePartyAllocation = false,
|
||||||
|
enableAppendOnlySchema = false,
|
||||||
|
enableCompression = false,
|
||||||
)
|
)
|
||||||
} yield ledger
|
} yield ledger
|
||||||
)
|
)
|
||||||
|
@ -342,6 +342,7 @@ final class SqlLedgerSpecAppendOnly
|
|||||||
engine = new Engine(),
|
engine = new Engine(),
|
||||||
validatePartyAllocation = validatePartyAllocation,
|
validatePartyAllocation = validatePartyAllocation,
|
||||||
enableAppendOnlySchema = true,
|
enableAppendOnlySchema = true,
|
||||||
|
enableCompression = false,
|
||||||
).acquire()(ResourceContext(system.dispatcher))
|
).acquire()(ResourceContext(system.dispatcher))
|
||||||
createdLedgers += ledger
|
createdLedgers += ledger
|
||||||
ledger.asFuture
|
ledger.asFuture
|
||||||
|
Loading…
Reference in New Issue
Block a user