Bugzilla – Attachment 13637 Details for
Bug 9049
rebuild_zebra should not use shadow when called with -r
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-SIGNED-OFF-Bug-9049-Don-t-use-shadow-with-rebuild_zebra
0001-SIGNED-OFF-Bug-9049-Don-t-use-shadow-with-rebuild_ze.patch (text/plain), 1.54 KB, created by
wajasu
on 2012-11-22 15:06:30 UTC
(
hide
)
Description:
0001-SIGNED-OFF-Bug-9049-Don-t-use-shadow-with-rebuild_zebra
Filename:
MIME Type:
Creator:
wajasu
Created:
2012-11-22 15:06:30 UTC
Size:
1.54 KB
patch
obsolete
>From d5208e083253bb1fe7acff213d17ecfd53aa3de0 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Sat, 10 Nov 2012 07:51:22 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 9049: Don't use shadow with rebuild_zebra > -r > >Due to a limitation of Zebra, the register must be cleared *before* >doing shadow indexing if you want to reset the indexes. In light of >that, it does not make sense to do shadow indexing at all when >rebuild_zebra.pl is run with the -r switch. This patch makes -r (reset) >imply -n (no shadow). > >To test: >1) Run `rebuild_zebra.pl -b -r -v -v -v` >2) Note that the script never runs the merge phase > >Signed-off-by: wajasu <matted-34813@mypacks.net> >--- > misc/migration_tools/rebuild_zebra.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl >index 0e24df5..b72ab2c 100755 >--- a/misc/migration_tools/rebuild_zebra.pl >+++ b/misc/migration_tools/rebuild_zebra.pl >@@ -93,6 +93,10 @@ if ($process_zebraqueue and $do_not_clear_zebraqueue) { > die $msg; > } > >+if ($reset) { >+ $noshadow = 1; >+} >+ > if ($noshadow) { > $noshadow = ' -n '; > } >@@ -667,7 +671,7 @@ Parameters: > or -s. > > -r clear Zebra index before >- adding records to index >+ adding records to index. Implies -w. > > -d Temporary directory for indexing. > If not specified, one is automatically >-- >1.7.12.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9049
:
13372
|
13637
|
13939