Lines Matching refs:cfg
24 private void Config(SecondaryQueueDatabaseConfig cfg) {
25 base.Config((SecondaryDatabaseConfig)cfg);
26 db.set_flags(cfg.flags);
27 if (cfg.lengthIsSet)
28 db.set_re_len(cfg.Length);
29 if (cfg.padIsSet)
30 db.set_re_pad(cfg.PadByte);
31 if (cfg.extentIsSet)
32 db.set_q_extentsize(cfg.ExtentSize);
60 /// <param name="cfg">The database's configuration</param>
63 string Filename, SecondaryQueueDatabaseConfig cfg) {
64 return Open(Filename, cfg, null);
93 /// <param name="cfg">The database's configuration</param>
104 SecondaryQueueDatabaseConfig cfg, Transaction txn) {
105 SecondaryQueueDatabase ret = new SecondaryQueueDatabase(cfg.Env, 0);
106 ret.Config(cfg);
108 Filename, null, DBTYPE.DB_QUEUE, cfg.openFlags, 0);
112 cfg.Primary.db.associate(Transaction.getDB_TXN(null),
113 ret.db, ret.doAssocRef, cfg.assocFlags);
115 if (cfg.ForeignKeyDatabase != null) {
116 if (cfg.OnForeignKeyDelete == ForeignKeyDeleteAction.NULLIFY)
121 cfg.ForeignKeyDatabase.db.associate_foreign(
122 ret.db, ret.doNullifyRef, cfg.foreignFlags);