diff options
author | Andreas Schneider <asn@samba.org> | 2010-06-15 13:37:44 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-27 10:27:15 -0400 |
commit | db2a777b0ee1e75fb6d11ad1240d7214a4e1dac4 (patch) | |
tree | bcb10dcf5a35965352d3d72628f23c18020e8c20 /source3/printing/nt_printing.c | |
parent | 35e03ef5c22020e047bd05e61be6c46701a07702 (diff) | |
download | samba-db2a777b0ee1e75fb6d11ad1240d7214a4e1dac4.tar.gz samba-db2a777b0ee1e75fb6d11ad1240d7214a4e1dac4.tar.bz2 samba-db2a777b0ee1e75fb6d11ad1240d7214a4e1dac4.zip |
s3-printing: Added automatic migration of printing tdbs.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/printing/nt_printing.c')
-rw-r--r-- | source3/printing/nt_printing.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 6a45ac0924..a70d9ea45a 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -23,6 +23,7 @@ #include "librpc/gen_ndr/messaging.h" #include "printing/pcap.h" #include "printing/nt_printing_tdb.h" +#include "printing/nt_printing_migrate.h" #include "registry.h" #include "registry/reg_objects.h" #include "../librpc/gen_ndr/ndr_security.h" @@ -95,6 +96,10 @@ bool nt_printing_init(struct messaging_context *msg_ctx) return false; } + if (!nt_printing_tdb_migrate()) { + return false; + } + /* * register callback to handle updating printers as new * drivers are installed |